package com.ruoyi.erp.service;

import java.util.List;

import com.ruoyi.erp.domain.BatchReceivabelPlan;
import com.ruoyi.erp.domain.Project;
import com.ruoyi.erp.domain.ReceivablePlan;

/**
 * 收款计划Service接口
 * 
 * @author sauger
 * @date 2022-03-28
 */
public interface IReceivablePlanService 
{
    /**
     * 查询收款计划
     * 
     * @param id 收款计划主键
     * @return 收款计划
     */
    public ReceivablePlan selectReceivablePlanById(Integer id);

    /**
     * 查询收款计划列表
     * 
     * @param receivablePlan 收款计划
     * @return 收款计划集合
     */
    public List<ReceivablePlan> selectReceivablePlanList(ReceivablePlan receivablePlan);

    /**
     * 新增收款计划
     * 
     * @param receivablePlan 收款计划
     * @return 结果
     */
    public int insertReceivablePlan(ReceivablePlan receivablePlan);

    /**
     * 修改收款计划
     * 
     * @param receivablePlan 收款计划
     * @return 结果
     */
    public int updateReceivablePlan(ReceivablePlan receivablePlan);

    /**
     * 批量删除收款计划
     * 
     * @param ids 需要删除的收款计划主键集合
     * @return 结果
     */
    public int deleteReceivablePlanByIds(String ids);

    /**
     * 删除收款计划信息
     * 
     * @param id 收款计划主键
     * @return 结果
     */
    public int deleteReceivablePlanById(Integer id);

    /**
     * 批量新增一个项目的收款计划
     * @param project
     * @param batchReceivabelPlan
     * @return
     */
    public int batchInsertReceivablePlans(Project project, BatchReceivabelPlan batchReceivabelPlan);
}
